<?php

require_once '../php_includes/class.Database.php';

$reg = $_POST['reg'];
$cap = $_POST['cap'];
$whcap = $_POST['whcap'];
$com = $_POST['com'];

$database = new Database();

$database->addVehicle($reg, $cap, $whcap, $com);

header('Location: http://localhost/git/mini-pool/?p=overview');